line spectra and atomic structure